home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / mc51bugs.zip / Q32020 < prev    next >
Text File  |  1988-07-21  |  789b  |  34 lines

  1. Q32020 Segment Violation
  2. C Compiler
  3. 5.10
  4. MS-DOS
  5.  
  6. Summary:
  7.    When the program below is compiled with /AL /Oal, it loads an
  8. uninitialized local variable into es:di. This results in a segment
  9. violation under OS/2.
  10.  
  11. More Information:
  12.    The program is as follows:
  13.  
  14. static void reloc(codebase, oploc, opcode)
  15. short *codebase;
  16. int    oploc;
  17. int    opcode;
  18. {
  19.      short nextop;
  20.      while (oploc >= 0)
  21.        {
  22.           nextop = codebase[oploc];
  23.        codebase[oploc] = opcode;
  24.        oploc = nextop;
  25.        }
  26. }
  27.  
  28.    Microsoft has confirmed this to be a problem in Version 5.10 of the
  29. C Compiler. Microsoft is researching this problem and will post new
  30. information as it becomes available.
  31.  
  32. Keywords:  Segment Violation OS/2 buglist5.10
  33. Updated  88/07/21 03:19
  34.